﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>商家管理</title>
    <link href="~/plugins/layui/css/layui.css" rel="stylesheet" />
</head>
<body style="margin-left:10px;margin-top:10px;">
    <div id="ss" class="layui-form-item">
        <div class="layui-inline">
            <div class="layui-input-inline" style="width: 30px;">
                <i class="layui-icon" style="font-size: 30px; color: #1E9FFF;">&#xe615;</i>
            </div>
            <div class="layui-input-inline" style="width: 150px;">
                <input class="layui-input" placeholder="开始日期" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" name="stime" value="@ViewBag.stime">
            </div>
            <div class="layui-form-mid">-</div>
            <div class="layui-input-inline" style="width: 150px;">
                <input class="layui-input" placeholder="结束日期" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" name="etime" value="@ViewBag.etime">
            </div>
            <div class="layui-input-inline">
                <a onclick="javascript: daochu();" class="layui-btn">给偶搜</a>
            </div>
        </div>
    </div>
    <div class="layui-form">
        <table class="layui-table">
            <thead>
                <tr>
                    <th></th>
                    <th>订单</th>
                    <th>商家营业额</th>
                    <th>会员提现</th>
                    <th>提现操作</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>全部(金额)</td>
                    <td>@ViewBag.order</td>
                    <td>@ViewBag.shop</td>
                    <td>@ViewBag.user</td>
                    <td>@ViewBag.pay</td>
                </tr>
                <tr>
                    <td>按时间查询</td>
                    <td>@ViewBag.ordertime</td>
                    <td>@ViewBag.shoptime</td>
                    <td>@ViewBag.usertime</td>
                    <td>@ViewBag.paytime</td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="layui-form">
        <table class="layui-table">
            <thead>
                <tr>
                    <th></th>
                    <th>初级会员</th>
                    <th>中级会员</th>
                    <th>高级会员</th>
                    <th>合作型</th>
                    <th>创业型</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>全部(数量)</td>
                    <td>@ViewBag.cj</td>
                    <td>@ViewBag.zj</td>
                    <td>@ViewBag.gj</td>
                    <td>@ViewBag.hz</td>
                    <td>@ViewBag.cy</td>
                </tr>
                <tr>
                    <td>按时间查询</td>
                    <td>@ViewBag.cjtime</td>
                    <td>@ViewBag.zjtime</td>
                    <td>@ViewBag.gjtime</td>
                    <td>@ViewBag.hztime</td>
                    <td>@ViewBag.cytime</td>
                </tr>
            </tbody>
        </table>
    </div>
    <em style="color:red;">需要各报表明细请在对应的管理列表查询自己要的条件后底部有导出功能</em>
    <script src="~/plugins/layui/layui.js"></script>
    <script>
        layui.use(['layer', 'laydate'], function () {
            var laydate = layui.laydate;
        });
        function daochu() {
            var parames = new Array();
            parames.push({ name: "daochu", value: "daochu" });
            var div = document.getElementById("ss");
            var input = div.getElementsByTagName("input");
            var select = div.getElementsByTagName("select");
            for (var i = 0; i < input.length; i++) {
                parames.push({ name: input[i].name, value: input[i].value });
            }
            for (var i = 0; i < select.length; i++) {
                parames.push({ name: select[i].name, value: select[i].value });
            }
            var temp_form = document.createElement("form");
            temp_form.action = window.location.href;
            temp_form.target = "_self";
            temp_form.method = "post";
            temp_form.style.display = "none";
            for (var item in parames) {
                var opt = document.createElement("textarea");
                opt.name = parames[item].name;
                opt.value = parames[item].value;
                temp_form.appendChild(opt);
            }
            document.body.appendChild(temp_form);
            temp_form.submit();
            return false;
        }
    </script>
</body>
</html>
